From e04a2ada3733778cdbe333437b8d45d9f9bcc1c2 Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Wed, 21 Jun 2006 12:34:46 +0000 Subject: [PATCH] Control points were backwards git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2171 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/saroute.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gpsbabel/saroute.c b/gpsbabel/saroute.c index a93056ad3..bbef33c05 100644 --- a/gpsbabel/saroute.c +++ b/gpsbabel/saroute.c @@ -201,10 +201,11 @@ my_read(void) record = ReadRecord(infile, recsize); latlon = (struct ll *)(record); + /* These records are backwards for some reason */ lat = (0x80000000UL - - le_read32(&latlon->lat)) / (double)(0x800000); - lon = (0x80000000UL - le_read32(&latlon->lon)) / (double)(0x800000); + lon = (0x80000000UL - + le_read32(&latlon->lat)) / (double)(0x800000); wpt_tmp = waypt_new(); wpt_tmp->latitude = lat; -- 2.30.2